<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmMultiPageStringListModel.cpp -->
  <meta name="description" content="分页 StringListModel.">
  <title>QCtmMultiPageStringListModel Class | QCustomUi 1.19.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.19.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmMultiPageStringListModel</li>
<li id="buildversion">QCustomUi 1.19.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmMultiPageStringListModel Class</h1>
<!-- $$$QCtmMultiPageStringListModel-brief -->
<p>分页 StringListModel. <a href="#details">More...</a></p>
<!-- @@@QCtmMultiPageStringListModel -->
<div class="table"><table class="alignedsummary requisites" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <code translate="no">#include &lt;QCtmMultiPageStringListModel.h&gt;</code></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qctmabstractmultipagetablemodel.html" translate="no">QCtmAbstractMultiPageTableModel</a></td></tr>
</table></div>
<ul>
<li><a href="qctmmultipagestringlistmodel-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#QCtmMultiPageStringListModel" translate="no">QCtmMultiPageStringListModel</a></b>(QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#QCtmMultiPageStringListModel-1" translate="no">QCtmMultiPageStringListModel</a></b>(QStringList &amp;&amp;<i>strings</i>, QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#QCtmMultiPageStringListModel-2" translate="no">QCtmMultiPageStringListModel</a></b>(const QStringList &amp;<i>strings</i>, QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#dtor.QCtmMultiPageStringListModel" translate="no">~QCtmMultiPageStringListModel</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#setStringList" translate="no">setStringList</a></b>(const QStringList &amp;<i>strings</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#setStringList-1" translate="no">setStringList</a></b>(QStringList &amp;&amp;<i>strings</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#stringList" translate="no">stringList</a></b>() const</td></tr>
</table></div>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#columnCount" translate="no">columnCount</a></b>(const QModelIndex &amp;<i>parent</i>) const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#data" translate="no">data</a></b>(const QModelIndex &amp;<i>index</i>, int <i>role</i>) const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#pageCount" translate="no">pageCount</a></b>() const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#rowCount" translate="no">rowCount</a></b>(const QModelIndex &amp;<i>parent</i>) const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagestringlistmodel.html#setData" translate="no">setData</a></b>(const QModelIndex &amp;<i>index</i>, const QVariant &amp;<i>value</i>, int <i>role</i>) override</td></tr>
</table></div>
<!-- $$$QCtmMultiPageStringListModel-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmMultiPageStringListModel -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmMultiPageStringListModel[overload1]$$$QCtmMultiPageStringListModelQObject* -->
<h3 class="fn" translate="no" id="QCtmMultiPageStringListModel"><code class="details extra" translate="no">[explicit]</code> QCtmMultiPageStringListModel::<span class="name">QCtmMultiPageStringListModel</span>(<span class="type"><a href="https://doc.qt.io/qt/qobject.html#QObject" translate="no">QObject</a></span> *<i>parent</i> = nullptr)</h3>
<p>构造函数 <i translate="no">parent</i>.</p>
<!-- @@@QCtmMultiPageStringListModel -->
<!-- $$$QCtmMultiPageStringListModel$$$QCtmMultiPageStringListModelQStringList&&QObject* -->
<h3 class="fn" translate="no" id="QCtmMultiPageStringListModel-1"><code class="details extra" translate="no">[explicit]</code> QCtmMultiPageStringListModel::<span class="name">QCtmMultiPageStringListModel</span>(<span class="type"><a href="https://doc.qt.io/qt/qstringlist.html" translate="no">QStringList</a></span> &amp;&amp;<i>strings</i>, <span class="type"><a href="https://doc.qt.io/qt/qobject.html#QObject" translate="no">QObject</a></span> *<i>parent</i> = nullptr)</h3>
<p>构造函数 <i translate="no">strings</i>, <i translate="no">parent</i>.</p>
<!-- @@@QCtmMultiPageStringListModel -->
<!-- $$$QCtmMultiPageStringListModel$$$QCtmMultiPageStringListModelconstQStringList&QObject* -->
<h3 class="fn" translate="no" id="QCtmMultiPageStringListModel-2"><code class="details extra" translate="no">[explicit]</code> QCtmMultiPageStringListModel::<span class="name">QCtmMultiPageStringListModel</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstringlist.html" translate="no">QStringList</a></span> &amp;<i>strings</i>, <span class="type"><a href="https://doc.qt.io/qt/qobject.html#QObject" translate="no">QObject</a></span> *<i>parent</i> = nullptr)</h3>
<p>构造函数 <i translate="no">strings</i>, <i translate="no">parent</i>.</p>
<!-- @@@QCtmMultiPageStringListModel -->
<!-- $$$~QCtmMultiPageStringListModel[overload1]$$$~QCtmMultiPageStringListModel -->
<h3 class="fn" translate="no" id="dtor.QCtmMultiPageStringListModel"><code class="details extra" translate="no">[virtual noexcept]</code> QCtmMultiPageStringListModel::<span class="name">~QCtmMultiPageStringListModel</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmMultiPageStringListModel -->
<!-- $$$columnCount[overload1]$$$columnCountconstQModelIndex& -->
<h3 class="fn" translate="no" id="columnCount"><code class="details extra" translate="no">[override virtual]</code> <span class="type">int</span> QCtmMultiPageStringListModel::<span class="name">columnCount</span>(const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> &amp;<i>parent</i>) const</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#columnCount" translate="no">QAbstractItemModel::columnCount</a>(const QModelIndex &amp;parent) const.</p>
<!-- @@@columnCount -->
<!-- $$$data[overload1]$$$dataconstQModelIndex&int -->
<h3 class="fn" translate="no" id="data"><code class="details extra" translate="no">[override virtual]</code> <span class="type"><a href="https://doc.qt.io/qt/qvariant.html" translate="no">QVariant</a></span> QCtmMultiPageStringListModel::<span class="name">data</span>(const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> &amp;<i>index</i>, <span class="type">int</span> <i>role</i>) const</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#data" translate="no">QAbstractItemModel::data</a>(const QModelIndex &amp;index, int role) const.</p>
<p><b>See also </b><a href="qctmmultipagestringlistmodel.html#setData" translate="no">setData</a>().</p>
<!-- @@@data -->
<!-- $$$pageCount[overload1]$$$pageCount -->
<h3 class="fn" translate="no" id="pageCount"><code class="details extra" translate="no">[override virtual]</code> <span class="type">int</span> QCtmMultiPageStringListModel::<span class="name">pageCount</span>() const</h3>
<p>Reimplements: <a href="qctmabstractmultipageitemmodel.html#pageCount" translate="no">QCtmAbstractMultiPageItemModel::pageCount</a>() const.</p>
<!-- @@@pageCount -->
<!-- $$$rowCount[overload1]$$$rowCountconstQModelIndex& -->
<h3 class="fn" translate="no" id="rowCount"><code class="details extra" translate="no">[override virtual]</code> <span class="type">int</span> QCtmMultiPageStringListModel::<span class="name">rowCount</span>(const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> &amp;<i>parent</i>) const</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#rowCount" translate="no">QAbstractItemModel::rowCount</a>(const QModelIndex &amp;parent) const.</p>
<!-- @@@rowCount -->
<!-- $$$setData[overload1]$$$setDataconstQModelIndex&constQVariant&int -->
<h3 class="fn" translate="no" id="setData"><code class="details extra" translate="no">[override virtual]</code> <span class="type">bool</span> QCtmMultiPageStringListModel::<span class="name">setData</span>(const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> &amp;<i>index</i>, const <span class="type"><a href="https://doc.qt.io/qt/qvariant.html" translate="no">QVariant</a></span> &amp;<i>value</i>, <span class="type">int</span> <i>role</i>)</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#setData" translate="no">QAbstractItemModel::setData</a>(const QModelIndex &amp;index, const QVariant &amp;value, int role).</p>
<p><b>See also </b><a href="qctmmultipagestringlistmodel.html#data" translate="no">data</a>().</p>
<!-- @@@setData -->
<!-- $$$setStringList[overload1]$$$setStringListconstQStringList& -->
<h3 class="fn" translate="no" id="setStringList"><span class="type">void</span> QCtmMultiPageStringListModel::<span class="name">setStringList</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstringlist.html" translate="no">QStringList</a></span> &amp;<i>strings</i>)</h3>
<p>设置字符串列表 <i translate="no">strings</i>.</p>
<p><b>See also </b><a href="qctmmultipagestringlistmodel.html#stringList" translate="no">stringList</a>.</p>
<!-- @@@setStringList -->
<!-- $$$setStringList$$$setStringListQStringList&& -->
<h3 class="fn" translate="no" id="setStringList-1"><span class="type">void</span> QCtmMultiPageStringListModel::<span class="name">setStringList</span>(<span class="type"><a href="https://doc.qt.io/qt/qstringlist.html" translate="no">QStringList</a></span> &amp;&amp;<i>strings</i>)</h3>
<p>This is an overloaded function.</p>
<p>设置字符串列表 <i translate="no">strings</i>.</p>
<p><b>See also </b><a href="qctmmultipagestringlistmodel.html#setStringList" translate="no">setStringList</a>.</p>
<!-- @@@setStringList -->
<!-- $$$stringList[overload1]$$$stringList -->
<h3 class="fn" translate="no" id="stringList">const <span class="type"><a href="https://doc.qt.io/qt/qstringlist.html" translate="no">QStringList</a></span> &amp;QCtmMultiPageStringListModel::<span class="name">stringList</span>() const</h3>
<p>返回字符串列表.</p>
<p><b>See also </b><a href="qctmmultipagestringlistmodel.html#setStringList" translate="no">setStringList</a>.</p>
<!-- @@@stringList -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
